/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package UserObject;
import DuLieu.GiaoTiep;
/**
 *
 * @author NSPDL
 */
public class TienLuong implements GiaoTiep{
    private NhanVien nv;
    private PhongBan pb;
    private double TienL;
    public TienLuong() {
    }

    public TienLuong(NhanVien nv, PhongBan pb, double TienL) {
        this.nv = nv;
        this.pb = pb;
        this.TienL = TienL;
    }

    public TienLuong(int idNV, double luong) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public double getTienL() {
        return TienL;
    }

    public void setTienL(double TienL) {
        this.TienL = TienL;
    }
    public int getMaNV()
    {
        return this.nv.getIdNV();
    }
    public int getMaPB()
    {
        return this.pb.getIdPhong();
    }
    @Override
    public Object[] toObject() {
        return new Object[]{nv.getIdNV(),TienL};
    }   

    
}
